module.exports = {
    //静态文件目录
    // 文件上传目录
    name: 'zz',
    port: process.env.Port || 8100,
    /** mysql settings */
    mysql: {
        client: 'mysql',
        connection: {
            host: process.env.MYSQL_HOST || '127.0.0.1',
            port: process.env.MYSQL_PORT || 3306,
            user: process.env.MYSQL_USER || 'root',
            password: process.env.MYSQL_PASSWORD || '123456',
            database: process.env.MYSQL_DBNAME || 'yunyi_mysql'
        },
        pool: { min: 1, max: 5 },
        acquireConnectionTimeout: 300000,
        log: {
            warn(message) {},
            error(message) {
                console.error(message)
            },
            deprecate(message) {},
            debug(message) {},
        },
        debug: true
    },
    //上传文件路径
    uploads: process.env.Uploads || '@/../uploads/',
    //图片存储路径
    bg: process.env.Bg || '/../../../public/img/bg',
    source: process.env.Source || '/../../../public/img/source',
    border: process.env.Border || '/../../../public/img/border',
    //接口返回图片路径
    fileBg: process.env.FileBg || '/img/bg/',
    fileSource: process.env.FileSource || '/img/source/',
    fileBorder: process.env.FileBorder || '/img/border/',
}